package com.gao.security.verificationcode.storage;

import com.gao.security.verificationcode.entity.VerificationCode;

/**
 * <p>
 * 验证码存储管理器
 * </p>
 *
 * @author GaoShuangWen
 */
public interface VerificationCodeStorageManager {
    /**
     * 保存验证码
     *
     * @param
     * @return
     */
    boolean saveCode(VerificationCode code);

    /**
     * 获取code
     *
     * @return
     */
    VerificationCode getCode(String key);


    /**
     * 去除验证码
     *
     * @param key
     * @return
     */
    boolean remove(String key);
}
